﻿


<script src="~/Scripts/MGJJS/OriginsNode/OriginsNodeConfig_P.js"></script>

<div id="SourceNode" class="container-fluid">

    <div style=" max-height: 500px; overflow-y: auto; overflow-x: hidden;" class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
        <div id="SourceNodeLeft">
            <h2 class="text-center green-500">溯源节点</h2>
            <div class="padding-bottom-50">
                <div id="SourceNodeLeft_">
                    <div class="SourceNodeLeftChild ">
                        <div class="border-buttom padding-10 ">
                            <ul class="margin-left-10 margin-right-10" id="NodeData" style="display:none;">
                                <li class="border-buttom padding-10">
                                    <div class="border-buttom padding-bottom-10 ">
                                        <span binding="{'text':'rownum'}"></span>
                                        <span class="padding-right-20">节点名称:</span>
                                        <span style="color:#999999" binding="{'text':'NodeName'}"></span>
                                        <span class="fr">
                                            <i class="glyphicon glyphicon-edit" binding="{'NodeId':'Id'}" onclick="NodeConfig.Ajax_EditNode(this)"></i>
                                            <i class="glyphicon glyphicon-remove" binding="{'NodeId':'Id'}" onclick="NodeConfig.Ajax_DeleteNode(this)"></i>
                                        </span>
                                    </div>

                                    <span class="padding-right-20">节点类型:</span>
                                    <span>
                                        <a class="click_a color-999999" binding="{'text':'Category','textHandle':NodeConfig.getCategoryName}">原料节点</a>
                                    </span>
                                    <span class="padding-right-20">录入次数:</span>
                                    <span>
                                        <a class="click_a color-999999" binding="{'text':'EnterTimes','textHandle':NodeConfig.getEnterTimes}">多次</a>
                                    </span>
                                </li>

                            </ul>
                        </div>


                    </div>
                </div>
                <footer style="position:absolute;bottom:10px;width:100%">
                    <a class="btn btn-success col-xs-5 col-sm-5 col-md-5 col-lg-5" onclick="NodeConfig.Ajax_AddNode()">添加节点</a>
                    <a class="btn btn-success col-xs-5 col-sm-5 col-md-5 col-lg-5" onclick="NodeConfig.Dialog_FromTemplet($('#FlowID').val())">从模板添加</a>
                </footer>
                <div style="clear:both"></div>
            </div>
        </div>
    </div>
    <div id="SourceNodeRight" class="col-xs-8 col-sm-8 col-md-8 col-lg-8 padding-bottom-50">
        <form method="post" id="Node_form">
            <input type="hidden" id="id" name="Id" value="0">
            <input type="hidden" name="FlowID" value="0" id="FlowID">
            <input type="hidden" name="NodeType" value="0" />


            <div id="myTabContent" class="tab-content">
               <!--  <div class="tab-pane fade in active" id="home">  -->
                <div>
                    <div class="row form-group">
                        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-right"><span class="red-600">*</span>节点名称:</div>
                        <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
                            <input id="NodeName" class="form-control" name="NodeName" maxlength="20" type="text" value="">
                        </div>
                    </div>
                    <div class="row  form-group">
                        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-right"><span class="red-600">*</span>节点类型:</div>
                        <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
                            <select class="form-control" name="Category" id="Category">
                                <option value="">--请选择--</option>
                                <option value="0">原料节点</option>
                                <option value="1">关键节点 </option>
                                <option value="2">其它</option>
                            </select>
                        </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-right"><span class="red-600">*</span>录入限制:</div>
                        <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
                            <div>
                                <label class="NodeConfigLabel"><input type="radio" name="EnterTimes" value="0" />单次输入</label>
                                <label class="NodeConfigLabel"><input type="radio" name="EnterTimes" value="1" />多次输入</label>
                            </div>
                            <p>选择单次输入将使单个产品批次仅允许录入一次该节点信息，通常使用在“播种”、“屠宰”、“进口”等仅发生一次节点上。</p>
                        </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-right"><span class="red-600">*</span>H5控制:</div>
                        <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
                            <div>
                                <label class="NodeConfigLabel"><input type="radio" name="IsH5" value="1" />显示</label>
                                <label class="NodeConfigLabel"><input type="radio" name="IsH5" value="0" />隐藏</label>
                            </div>
                            <p>该节点的溯源信息将默认在H5中显示</p>
                        </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-right"><span class="red-600">*</span>修改权限:</div>
                        <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
                            <div>
                                <label class="NodeConfigLabel" style="width:100%"><input type="radio" name="Permission" value="0" />允许所有人修改</label>
                                <label class="NodeConfigLabel" style="width:100%"><input type="radio" name="Permission" value="1" />只允许有权限的人修改</label>
                            </div>
                        </div>
                    </div>


                    <div class="row form-group" id="Modifier">
                        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-right">修改人:</div>
                        <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
                            <select class="form-control" id="UserSelect" name="PermissionPerson"></select>
                        </div>
                    </div>


                    <div class="margin-top-10 padding-top-20 padding-bottom-20 form-group" style="border: 1px solid #f1f4f5;clear:both">
                        <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 text-center AddContent">
                            <i class="glyphicon glyphicon-pencil font-size-20" style="display:block"></i>
                            增加文字
                            <input type="checkbox" class="AddContentInp" name="DisplayChe" value="0" />
                        </label>

                        <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 text-center AddContent">
                            <i class="glyphicon glyphicon-picture font-size-20" style="display:block"></i>
                            增加图片
                            <input type="checkbox" class="AddContentInp" name="DisplayChe" value="1" />
                        </label>

                        <label class="col-xs-4 col-sm-4 col-md-4 col-lg-4 text-center AddContent">
                            <i class="glyphicon glyphicon-facetime-video font-size-20" style="display:block"></i>
                            增加视频
                            <input type="checkbox" class="AddContentInp" name="DisplayChe" value="2" />
                        </label>
                        <div style="clear:both"></div>
                    </div>

                    <input type="hidden" name="Display" id="Display" value="" />
                    <div style="position: absolute; bottom: 10px; width: 100%" class="text-right">
                        <button class="btn btn-success" type="button" onclick="NodeConfig.NodeInfoIniti()">取消编辑</button>

                        <button class="btn btn-success" type="button" onclick="NodeSave($('#FlowID').val())">保存节点</button>
                    </div>
                </div>


            </div>
        </form>
    </div>

</div>



